import axios from 'axios'
const instance=axios.create({
    withCredentials: true,
    baseURL:"http://localhost:3000",
    headers: {
        'Content-Type': 'application/json; charset=utf-8'
      }
   
})
instance.interceptors.response.use(res=>{
    if(res.status>200||res.status<400){
        return res.data
    }
    else{
        console.log("链接出错")
    }
    
})
export default instance